home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / virus / mcf100.zip / MCF100.DOC < prev    next >
Text File  |  1992-10-02  |  39KB  |  1,175 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                              MCONFIG Version 1.00
  26.                      Copyright 1992 by McAfee Associates.
  27.                              All Rights Reserved.
  28.  
  29.                        Documentation by Aryeh Goretsky
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.           McAfee Associates, Inc.           (408) 988-3832 office
  46.           3350 Scott Blvd, Bldg. 14         (408) 970-9727 FAX
  47.           Santa Clara, CA  95054-3107       (408) 988-4004 BBS
  48.           USA                               USR HST/v.32/v.42bis/MNP1-5
  49.                                             CompuServe        GO MCAFEE
  50.                                             Internet support@mcafee.COM
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.                               TABLE OF CONTENTS
  58.  
  59.           SYNOPSIS . . . . . . . . . . . . . . . . . . . . . . . . . 2
  60.            - What is the Multiple Configuration Manager (MCONFIG)
  61.            - System requirements
  62.  
  63.           AUTHENTICITY . . . . . . . . . . . . . . . . . . . . . . . 3
  64.            - Verifying the integrity of MCONFIG
  65.  
  66.           MCONFIG OVERVIEW . . . . . . . . . . . . . . . . . . . . . 4
  67.            - General description of MCONFIG
  68.  
  69.           MCONFIG INSTALLATION and OPTIONS . . . . . . . . . . . . . 5
  70.            - Options for use with MCONFIG
  71.  
  72.           MCONFIG MENU ITEMS . . . . . . . . . . . . . . . . . . . . 6
  73.            - How to insert Configuration Selection Menu items
  74.  
  75.           MCONFIG DISPLAY ITEMS. . . . . . . . . . . . . . . . . . . 8
  76.            - How to change MCONFIG's colors
  77.  
  78.           MCONFIG SUPPLEMENTAL PROGRAMS. . . . . . . . . . . . . . . 9
  79.            - How to use the ASK, PAUSE, and ECHO device drivers
  80.  
  81.           MCONFIG EXAMPLES . . . . . . . . . . . . . . . . . . . . . 11
  82.            - Sample CONFIG.SYS and AUTOEXEC.BAT files
  83.  
  84.           MCONFIG TUTORIAL . . . . . . . . . . . . . . . . . . . . . 14
  85.            - Learn how to use MCONFIG
  86.  
  87.           NOTES ON MCONFIG . . . . . . . . . . . . . . . . . . . . . 15
  88.            - DOS 3.3 and DOS 5.0 considerations
  89.  
  90.           APPENDIX A: Advanced MCONFIG Features  . . . . . . . . . . 16
  91.            - How to use the ENVIRON and SET device drivers
  92.            - How to use the MCON-ERR, MCON-SET, and CREM programs
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.                                     Page 1
  109.  
  110. MCONFIG Version 1.00                                    Page 2
  111.  
  112.  
  113.           SYNOPSIS
  114.  
  115.                MCONFIG is a suite of utilities designed to provide 
  116.           multiple configurations for flexibility.  MCONFIG is for IBM PC
  117.           and compatible computers using the MS-DOS and PC-DOS operating
  118.           systems.  MCONFIG provides up to 14 different multiple
  119.           configuration setups inside the CONFIG.SYS and AUTOEXEC.BAT files.
  120.  
  121.                MCONFIG is a device driver that loads through the
  122.           CONFIG.SYS file.  MCONFIG presents the user with a menu of the
  123.           different configurations available.  After selecting one,
  124.           MCONFIG modifies the in-memory copy of CONFIG.SYS so that only
  125.           the commands for the selected configuration are executed.
  126.  
  127.                MCONFIG Version 1.00 works on any system with 256Kb of
  128.           memory and DOS 3.3 or greater.  MCONFIG requires MS-DOS or
  129.           PC-DOS 3.30 or above.  It is not compatible with DR-DOS.
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165. MCONFIG Version 1.00                                    Page 3
  166.  
  167.  
  168.           AUTHENTICITY
  169.  
  170.                MCONFIG is packaged with the VALIDATE program to ensure the
  171.           integrity of its files.  The VALIDATE.DOC file tells how to use
  172.           VALIDATE.  VALIDATE can be used to check subsequent versions of
  173.           MCONFIG for tampering.
  174.  
  175.                The validation results for Version 1.00 should be:
  176.  
  177.           FILENAME     SIZE       DATE         CHECK METHOD
  178.  
  179.           ASK.SYS      S:4,057    D:08-19-92   M1: 6E41  M2: 146B
  180.           CREM.EXE     S:15,372   D:08-21-92   M1: 6D59  M2: 1EC8
  181.           ECHO.SYS     S:1,700    D:08-19-92   M1: CE25  M2: 0C88
  182.           ENVIRON.SYS  S:298      D:08-19-92   M1: AB32  M2: 1504
  183.           MCONFIG.SYS  S:13,651   D:08-21-92   M1: 6CF3  M2: 1061
  184.           MCON-ERR.COM S:71       D:07-23-92   M1: 51EE  M2: 1EEC
  185.           MCON-SET.EXE S:10,098   D:07-23-92   M1: 935D  M2: 0400
  186.           PAUSE.SYS    S:1,890    D:08-19-92   M1: 4D46  M2: 10AA
  187.           SET.SYS      S:2,518    D:08-19-92   M1: 5ED3  M2: 17AF
  188.  
  189.  
  190.           If your copy of MCONFIG differs, it may have been damaged.
  191.           Always obtain MCONFIG  from a known source, such as McAfee
  192.           Associates, its Authorized Agents, or the person responsible for
  193.           computer security in your organization.  The latest version of
  194.           MCONFIG and validation data can be obtained from McAfee
  195.           Associates' bulletin board system at (408) 988-4004, the McAfee
  196.           Virus Help Forum on CompuServe (GO MCAFEE), or by anonymous ftp
  197.           from the mcafee.COM site on the Internet.
  198.  
  199.                All of McAfee Associates' programs have been archived
  200.           with PKWare's PKZIP Authentic File Verification.  If you do
  201.           not see an "-AV" after every file is unzipped and receive
  202.           the "Authentic Files Verified! # NWN405 Zip Source: McAFEE
  203.           ASSOCIATES" message then do not use them.
  204.  
  205.                If your version of PKUNZIP does not have verification
  206.           ability, then this message may not be displayed.  Please
  207.           contact us if you believe tampering has occurred to the .ZIP
  208.           file.
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220. MCONFIG Version 1.00                                    Page 4
  221.  
  222.  
  223.           MCONFIG OVERVIEW
  224.  
  225.  
  226.                MCONFIG is a device driver that allows the selection of
  227.           different configuration set ups.  At boot up, MCONFIG
  228.           displays a menu listing available configurations.  After
  229.           selecting a configuration, MCONFIG modifies the in-memory copy
  230.           of the CONFIG.SYS file so that only the configuration selected
  231.           will be used.  After the selected configuration has been
  232.           executed, a single AUTOEXEC batch file or multiple AUTOEXEC
  233.           files can be executed.
  234.  
  235.                MCONFIG comes with a number of supplementary device drivers
  236.           to simplify the creation of multi-configuration environments.
  237.           These device drivers are explained in appendix A.
  238.  
  239.                MCONFIG works by placing Menu Items within the CONFIG.SYS
  240.           file, followed by the different "selection blocks" of CONFIG.SYS
  241.           entries to be used when each Menu Item is selected.  Menu Items
  242.           display the actual text to appear on the Configuration Selection
  243.           menu; these are followed by the CONFIG.SYS entries associated
  244.           with each Menu Item.
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275. MCONFIG Version 1.00                                    Page 5
  276.  
  277.  
  278.           MCONFIG INSTALLATION and OPTIONS
  279.  
  280.                MCONFIG is normally placed at the beginning of the
  281.           CONFIG.SYS file.  When initially executed, MCONFIG reads in
  282.           the rest of the CONFIG.SYS file and displays a Configuration
  283.           Selection menu based on the Menu Items found.
  284.  
  285.           NOTE:  There will be several entries for MCONFIG in the
  286.                  CONFIG.SYS file:  one to initially load MCONFIG,
  287.                  one for each Menu Item, plus an entry to signal where
  288.                  MCONFIG stops processing the last menu entry.
  289.                  Additional entries to set colors and other options may
  290.                  also appear.
  291.  
  292.                Valid options for MCONFIG are listed below:
  293.  
  294.           DEVICE = MCONFIG.SYS CENTER DEFAULT=n END NOHIGHVIDEO NUMOFF
  295.                    TIMEOUT=n PASSIVE {left shift key} {right shift key}
  296.  
  297.           Options are:
  298.  
  299.                      CENTER - center Menu Items in window
  300.                   DEFAULT=n - use Menu Item 'n' as default
  301.                         END - tells where last Menu Item finishes
  302.                 NOHIGHVIDEO - disable video attributes used on EGA/VGA
  303.                               monitors
  304.                      NUMOFF - turn off NumLock
  305.                     PASSIVE - execute first Menu Item as default
  306.                               (see below for specifics)
  307.                   TIMEOUT=n - set delay time in seconds for DEFAULT
  308.            {left shift key} - invoke Menu Item 1 at boot-up
  309.           {right shift key} - invoke Menu Item 2 at boot-up
  310.  
  311.           NOTE:  Use the complete pathname for only the first MCONFIG
  312.                  entry.  For other entries use the statement
  313.                  "DEVICE = MCONFIG options" with a pathname.
  314.  
  315.                The CENTER switch tells MCONFIG to center Menu Items
  316.           in the MCONFIG Configuration Selection menu window.  By
  317.           default, all Menu Items are left-justified.
  318.  
  319.                The DEFAULT switch tells MCONFIG which Menu Item to
  320.           select as the default menu selection.  It can be used with the
  321.           TIMEOUT switch to invoke a default configuration.  Syntax is
  322.           DEFAULT=n where 'n' is the Menu Item to select as the default
  323.           OR place the DEFAULT switch on the MCONFIG Menu Item line to be
  324.           selected as the default Menu Item.
  325.  
  326.  
  327.  
  328.  
  329.  
  330. MCONFIG Version 1.00                                    Page 6
  331.  
  332.  
  333.                The END switch tells MCONFIG to finish processing menu
  334.            entries.  Any CONFIG.SYS entries after the END switch will be
  335.            executed with all configurations.
  336.  
  337.                The NOHIGHVIDEO switch disables the "high video"
  338.           attributes used on EGA and VGA monitors.  If you are using a
  339.           different type of monitor, you may see blinking characters on
  340.           the screen.  If so, use the NOHIGHVIDEO switch with MCONFIG.
  341.  
  342.                The NUMOFF switch turns off the NumLock key.
  343.  
  344.                The PASSIVE switch tells MCONFIG to use the first Menu
  345.           Item unless you tell it to pop up the menu by pressing the
  346.           left SHIFT key.  If the right SHIFT key is pressed, MCONFIG
  347.           executes the second Menu Item.
  348.  
  349.                In non-passive mode, holding down the {LEFT SHIFT KEY}
  350.           during boot-up will automatically start the first Menu Item
  351.           without displaying the Configuration Selection Menu.
  352.  
  353.                Holding down the {RIGHT SHIFT KEY} during boot-up will
  354.           automatically start the second Menu Item without displaying the
  355.           Configuration Selection Menu.
  356.  
  357.           Key pressed │ In ACTIVE Mode          │ In PASSIVE mode
  358.           at boot-up  │ (default)               │ (using PASSIVE switch)
  359.           ════════════╪═════════════════════════╪════════════════════════
  360.           none        │ MCONFIG menu is always  │ First Menu Item is
  361.                       │ displayed on screen.    │ executed without
  362.                       │                         │ displaying the menu.
  363.           ────────────┼─────────────────────────┼────────────────────────
  364.           left SHIFT  │ First Menu Item is      │ MCONFIG menu is
  365.           key         │ executed.               │ displayed on screen
  366.           ────────────┼─────────────────────────┼────────────────────────
  367.           right Shift │ Second Menu Item is     │ Second Menu Item is
  368.           key         │ executed without        │ executed without
  369.                       │ displaying the menu.    │ displaying the menu.
  370.  
  371.  
  372.           MCONFIG MENU ITEMS
  373.  
  374.  
  375.                Menu Items tell MCONFIG what text to insert into the
  376.           Configuration Selection Menu.  The syntax is:
  377.  
  378.           DEVICE = MCONFIG "text \TEXT\ \T\ext" DEFAULT TIMEOUT=n
  379.  
  380.           When MCONFIG sees the double quote in the CONFIG.SYS file
  381.           after MCONFIG, it adds that Message Line to the Configuration
  382.           Selection Menu.
  383.  
  384.  
  385. MCONFIG Version 1.00                                    Page 7
  386.  
  387.  
  388.           The operating system displays all lines in the CONFIG.SYS in
  389.           UPPER CASE.  To make messages more readable, MCONFIG switches
  390.           between cases.  This is done by placing a backslash character
  391.           "\" in the Message Line text.  Example:
  392.  
  393.           DEVICE = MCONFIG "T\his is a \TEST\ \M\essage."
  394.  
  395.           would be displayed on the screen as:
  396.  
  397.                "This is a TEST Message."
  398.  
  399.                The DEFAULT and TIMEOUT switches can be used with Message
  400.           Lines (See MCONFIG INSTALLATION and OPERATIONS for more
  401.           information).
  402.  
  403.                After each Menu Item, place the CONFIG.SYS entries to use
  404.           with it.  At the end of the multi-configuration area of the
  405.           CONFIG.SYS file, place a "DEVICE = MCONFIG End" statement.
  406.  
  407.                A commented example of a CONFIG.SYS:
  408.  
  409.               COMMENTS         │             CONFIG.SYS Contents
  410.           ═════════════════════╪══════════════════════════════════════════
  411.           invoke MCONFIG       │  device = C:\MCONFIG\MCONFIG.SYS
  412.                                │
  413.           option 1 on the menu │  device = MCONFIG "M\enu entry number 1"
  414.                                │       ........
  415.                                │       statements to execute if selected
  416.                                │       ........
  417.                                │
  418.           option 2 on the menu │  device = MCONFIG "M\enu entry number 2"
  419.                                │       ........
  420.                                │       statements to execute if selected
  421.                                │       ........
  422.                                │
  423.           mark the end         │  device = MCONFIG End
  424.                                │
  425.           These lines are used │  DOS     = High, UMB
  426.           with all selections  │  Files   = 30
  427.           since they are after │  Stacks  = 0,0
  428.           the MCONFIG = END    │  Buffers = 10
  429.           statement.           │  Break   = OFF
  430.  
  431.                 Using the above CONFIG.SYS file, the following
  432.           Configuration Selection menu will be displayed:
  433.  
  434.                  ╔════════════════════════════════════════════════╗
  435.                  ║                                                ║
  436.                  ║  Menu entry number 1                           ║
  437.                  ║  Menu entry number 2                           ║
  438.                  ║                                                ║
  439.                  ╚════════════════════════════════════════════════╝
  440. MCONFIG Version 1.00                                    Page 8
  441.  
  442.  
  443.           The first entry is highlighted by the "selection bar".
  444.           Choosing Entry 1 causes the statements immediately following
  445.           the first selection block to be executed, and statements in
  446.           the other selection blocks will be ignored by the system.
  447.  
  448.  
  449.           MCONFIG DISPLAY ITEMS
  450.  
  451.  
  452.           NOTE:  MCONFIG automatically detects monochrome monitors
  453.                  and will adjust screen colors appropriately.
  454.  
  455.                Display Items allow you to change MCONFIG's default
  456.           colors.  Display items follow the following syntax:
  457.  
  458.                DEVICE = MCONFIG displayitem = color
  459.  
  460.           Where "displayitem" is the item to change the color of and
  461.           "color" is the color to use.  Display Items are as follows:
  462.  
  463.                DISPLAY ITEM        COLOR
  464.                ═══════════════════╤═══════════════════════════════════════
  465.                BannerBorder       │top and bottom lines of screen
  466.                                   │
  467.                BannerBackground   │copyright background color
  468.                                   │
  469.                BannerForeground   │copyright foreground color
  470.                                   │
  471.                BackgroundFill     │background screen color
  472.                                   │
  473.                DialogBorder       │border color around Configuration
  474.                                   │Selection menu dialog box.
  475.                                   │
  476.                DialogBackground   │background color of Configuration
  477.                                   │Selection menu dialog box.
  478.                                   │
  479.                DialogForeground   │foreground color of Configuration
  480.                                   │Selection menu dialog box.
  481.                                   │
  482.             SelectionBarBackground│background color used when displaying
  483.                                   │the moveable selection bar.
  484.                                   │
  485.             SelectionBarForeground│foreground color used when displaying
  486.                                   │the moveable selection bar.
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495. MCONFIG Version 1.00                                    Page 9
  496.  
  497.  
  498.           Valid color values are:
  499.           ═════════════╤══════════════════════════════
  500.           Blue         │  LightBlue (BrightBlue)
  501.           Green        │  LightGreen (BrightGreen)
  502.           Cyan         │  LightCyan  (BrightCyan)
  503.           Red          │  LightRed (BrightRed)
  504.           Magenta      │  LightMagenta (BrightMagenta)
  505.           Brown        │  Yellow (BrightBrown)
  506.           DarkGray     │  LightGray (BrightGray)
  507.           White        │
  508.  
  509.  
  510.           MCONFIG SUPPLEMENTAL PROGRAMS
  511.  
  512.           ASK.SYS DEVICE DRIVER
  513.  
  514.                The ASK.SYS device driver is a device driver that can be
  515.           used to ask simple, one-line Yes/No questions at boot-up and
  516.           then selectively load other device drivers based upon the
  517.           response.  Questions can be placed in Menu Item "selection
  518.           blocks".  The syntax for ASK is:
  519.  
  520.           DEVICE = ASK.SYS "Question" DEFAULT=x TIMEOUT=n
  521.              DEVICE = YES
  522.                (lines to execute if YES)
  523.                ...
  524.              DEVICE = NO
  525.                (optional lines to execute if NO)
  526.                ...
  527.  
  528.           DEVICE = END
  529.  
  530.           For information on the DEFAULT and TIMEOUT switches, please
  531.           refer to the MCONFIG INSTALLATION and OPERATIONS section.
  532.  
  533.                An example of the ASK.SYS device driver:
  534.  
  535.              device=c:\Ask.Sys "L\oad mouse driver?" default=Y timeout=10
  536.              device=YES
  537.                   device=c:\mouse\mouse.sys
  538.              device=END
  539.  
  540.           The same caveats that apply to MCONFIG for DOS 3.3 and DOS 5.0
  541.           exist for ASK (see NOTES ON MCONFIG for more information).
  542.  
  543.  
  544.           PAUSE.SYS DEVICE DRIVER
  545.  
  546.                The PAUSE.SYS device driver performs identically to the
  547.           DOS PAUSE batch file command.  It displays an optional message
  548.  
  549.  
  550. MCONFIG Version 1.00                                    Page 10
  551.  
  552.  
  553.           and waits for any key to be pressed.  The syntax for PAUSE is:
  554.  
  555.                DEVICE = PAUSE.SYS message
  556.  
  557.           where "message" is an optional message to display.  If no
  558.           message is given, PAUSE will display:
  559.  
  560.                Press any key when ready...
  561.  
  562.           Otherwise, PAUSE will display the optional message.
  563.  
  564.           An example of the PAUSE.SYS device driver:
  565.  
  566.                DEVICE = C:\PAUSE.SYS P\ress any to continue \CONFIG.SYS
  567.  
  568.           would display the following message:
  569.  
  570.                Press any key to continue CONFIG.SYS
  571.  
  572.           and pause until a key was pressed.
  573.  
  574.  
  575.           ECHO.SYS DEVICE DRIVER
  576.  
  577.                The ECHO.SYS device driver performs identically to the
  578.           DOS ECHO batch file command.  It is useful for debugging the
  579.           CONFIG.SYS file.  The syntax for ECHO is:
  580.  
  581.                DEVICE = ECHO.SYS message
  582.  
  583.           where "message" is a message to display.
  584.  
  585.                An example of the ECHO.SYS device driver:
  586.  
  587.                DEVICE = C:\ECHO.SYS L\oading \MOUSE\ driver now.
  588.                DEVICE = C:\MOUSE\MOUSE.SYS
  589.                DEVICE = C:\ECHO.SYS MOUSE\ has loaded successfully.
  590.                DEVICE = C:\PAUSE.SYS
  591.  
  592.           would display the message "Loading MOUSE driver now.", load
  593.           the mouse driver into memory, display the message "MOUSE has
  594.           loaded successfully." and pause until a key is pressed.
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605. MCONFIG Version 1.00                                    Page 11
  606.  
  607.  
  608.           MCONFIG EXAMPLES
  609.  
  610.  
  611.                Following are a sample CONFIG.SYS file and two sample
  612.           AUTOEXEC.BAT files.  The CONFIG.SYS has three different
  613.           configurations for booting without network drivers, booting
  614.           with LAN Manager, and booting with Novell NetWare drivers.
  615.  
  616.           NOTE:  The first and last four lines of the CONFIG.SYS file are
  617.                  outside of the "DEVICE=C:\MCONFIG.SYS" and "MCONFIG End"
  618.                  lines are shared across all selections and will ALWAYS
  619.                  be run.
  620.  
  621.           __ SAMPLE CONFIG.SYS FILE ______________________________________
  622.           DOS     = high,umb
  623.           device  = c:\dos\himem.sys
  624.           device  = c:\emm386.exe ram noems i=b000-b7ff
  625.           shell   = c:\command.com /p /e:512
  626.  
  627.           DEVICE  = c:\mconfig.sys Center NumOff
  628.           device  = MCONFIG SelectionBarBackground=RED
  629.  
  630.           device = MCONFIG "N\o network" Default Timeout=30
  631.             devicehigh = c:\mouse\mouse.sys /y /s30
  632.             devicehigh = c:\dos\ansi.sys
  633.             devicehigh = c:\dos\setver.exe
  634.             device = c:\MCONFIG\Ask.Sys "L\oad the \MOUSE\ driver?"
  635.             device = YES
  636.             devicehigh = c:\mouse\mouse.sys /y /s30
  637.             device = END
  638.  
  639.           device = MCONFIG "LAN M\anager \N\etwork"
  640.             devicehigh = c:\netlib\dxma0mod.sys 001
  641.             devicehigh = c:\netlib\dxmc0mod.sys
  642.             devicehigh = c:\netlib\dxmt0mod.sys s=32 c=32
  643.             devicehigh = c:\dos\ansi.sys
  644.             devicehigh = c:\dos\setver.exe
  645.  
  646.           device = MCONFIG "N\ovell \N\etwork"
  647.             devicehigh = c:\mouse\mouse.sys /y /s30
  648.             devicehigh = c:\netlib\dxma0mod.sys 001
  649.             devicehigh = c:\netlib\dxmc0mod.sys
  650.             devicehigh = c:\netlib\dxmt0mod.sys s=32 c=32
  651.             devicehigh = c:\dos\ansi.sys
  652.             devicehigh = c:\dos\setver.exe
  653.  
  654.           device = MCONFIG End
  655.  
  656.           buffers   = 20
  657.           files     = 50
  658.           STACKS    = 0,0
  659.           lastdrive = E
  660. MCONFIG Version 1.00                                    Page 12
  661.  
  662.  
  663.               The first sample AUTOEXEC.BAT file shows how to use the
  664.           MCONFIG environment variable to login to a Novell network from
  665.           a single AUTOEXEC file, using the results from the sample
  666.           CONFIG.SYS above.
  667.  
  668.           NOTE:  These SAMPLES make use of the MCON-SET.EXE program used
  669.                  for setting DOS environmental variables from MCONFIG.
  670.                  For information on using this and the MCON-ERR.COM DOS
  671.                  ERRORLEVEL-setting program, please refer to APPENDIX A.
  672.  
  673.           __ SAMPLE FIRST AUTOEXEC.BAT FILE _____________________________
  674.           REM Run the MCON-SET program to set the environment variable
  675.           REM "MCONFIG" to the selection made from the menu.
  676.           C:\MCONFIG\MCON-SET.EXE
  677.           set comspec=c:\command.com
  678.           path c:\dos;c:\bat;c:\utils
  679.           set prompt=$p$g
  680.           C:\MCAFEE\VSHIELD.EXE /CHKHI /CV /LH /M
  681.           mode con rate=30 delay=1
  682.  
  683.           if NOT "%MCONFIG%" == "3" goto no_novell
  684.             c:\netware\wsgen\ipx
  685.             c:\netware\wsgen\route
  686.             c:\netware\wsgen\netx
  687.             f:
  688.             C:\MCAFEE\VSHIELD.EXE /RECONNECT
  689.             login mcafee_server_1/John_M
  690.             path %path;c:\netware
  691.           :no_novell
  692.           ________________________________________________ END OF FILE __
  693.  
  694.  
  695.                This example shows how to use the MCONFIG environment
  696.           variable to have 3 separate AUTOEXEC files.  Depending upon
  697.           the selection made from the MCONFIG menu, either AUTO-1.BAT,
  698.           AUTO-2.BAT, or AUTO-3.BAT will execute.
  699.  
  700.           __ SAMPLE SECOND AUTOEXEC.BAT FILE ____________________________
  701.           REM Call the MCON-SET program to set the environment variable
  702.           REM "MCONFIG" to the selection made from the menu.  Then call
  703.           REM the matching AUTO-n.BAT file.
  704.           C:\MCAFEE\VSHIELD.EXE /CHKHI /CV /LH /M
  705.           C:\MCONFIG\MCON-SET.EXE
  706.           C:\AUTO-%MCONFIG%.BAT
  707.           ________________________________________________ END OF FILE __
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715. MCONFIG Version 1.00                                    Page 13
  716.  
  717.  
  718.           __ SAMPLE AUTO-1.BAT FILE _____________________________________
  719.           set comspec=c:\command.com
  720.           path c:\dos;c:\bat;c:\utils
  721.           set prompt=$p$g
  722.           mode con rate=30 delay=1
  723.           ________________________________________________ END OF FILE __
  724.  
  725.  
  726.           __ SAMPLE AUTO-2.BAT FILE _____________________________________
  727.           set comspec=c:\command.com
  728.           path c:\dos;c:\bat;c:\utils
  729.           set prompt=$p$g
  730.           mode con rate=30 delay=1
  731.           ________________________________________________ END OF FILE __
  732.  
  733.  
  734.           __ SAMPLE AUTO-3.BAT FILE _____________________________________
  735.           set comspec=c:\command.com
  736.           path c:\dos;c:\bat;c:\utils
  737.           set prompt=$p$g
  738.           mode con rate=30 delay=1
  739.           c:\netware\wsgen\ipx
  740.           c:\netware\wsgen\route
  741.           c:\netware\wsgen\netx
  742.           f:
  743.           C:\MCAFEE\VSHIELD.EXE /RECONNECT
  744.           login mcafee_server_1/John_M
  745.           ________________________________________________ END OF FILE __
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770. MCONFIG Version 1.00                                    Page 14
  771.  
  772.  
  773.           MCONFIG TUTORIAL
  774.  
  775.  
  776.                The easiest way to get familiarized with MCONFIG is to
  777.           create a two-selection CONFIG.SYS file.  Option one is your
  778.           existing CONFIG.SYS file.  Option two will be a minimum
  779.           "bare-bones" configuration.
  780.  
  781.                Load the CONFIG.SYS file into your text editor or word
  782.           processor and make the following changes to the current
  783.           CONFIG.SYS file:
  784.  
  785.           NOTE:  When editing the CONFIG.SYS file with a word processor
  786.                  be sure to save it as an ASCII text file, not a word
  787.                  processor document.
  788.  
  789.           Add the following two lines to the top of the CONFIG.SYS file
  790.           (change the pathname if MCONFIG is located elsewhere):
  791.  
  792.                device=C:\MCONFIG\MCONFIG.SYS CENTER
  793.                device=MCONFIG "S\tandard \C\onfiguration" Default Timeout=30
  794.  
  795.           Next, go to the end of the CONFIG.SYS file and add:
  796.  
  797.                device=MCONFIG "M\inimal \C\onfiguration"
  798.                  files   = 20
  799.                  buffers = 30
  800.                device=MCONFIG End
  801.  
  802.           Save the CONFIG.SYS file and re-boot the computer.  The MCONFIG
  803.           Configuration Selection menu will appear with two configuration
  804.           options.  Selecting the first option loads the original
  805.           CONFIG.SYS.  Selecting the second option loads the minimal
  806.           configuration.
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825. MCONFIG Version 1.00                                    Page 15
  826.  
  827.  
  828.           NOTES ON MCONFIG
  829.  
  830.           USING MCONFIG with DOS 3.30
  831.  
  832.                MCONFIG is designed to work seamlessly with DOS Version
  833.           4.00 and above.  It can be used with DOS 3.3x with the
  834.           following considerations:
  835.  
  836.           -    DOS 3.3x does not allow a "REMark" statement in the
  837.                CONFIG.SYS file.  MCONFIG adds a REM to comment-out
  838.                un-needed lines so this will cause a problem with DOS 3.3.
  839.                     To get around this, MCONFIG precedes unwanted lines
  840.                with "BREAK=OFF" statements.  This is done automatically
  841.                by MCONFIG if run under DOS 3.3x.
  842.  
  843.           -    To set BREAK=ON in the CONFIG.SYS, place the "BREAK=ON"
  844.                statement after the "DEVICE = MCONFIG End" statement.
  845.  
  846.           -    Lines with less than three characters after the equals "="
  847.                sign will not be correctly proceeded with a "BREAK=OFF"
  848.                statement.
  849.                     For example, "BUFFERS = 5" is not long enough and
  850.                will give an "Invalid Command?" error when executed in
  851.                the CONFIG.SYS file.  This does not affect the operation
  852.                of MCONFIG or the CONFIG.SYS file.
  853.                     To get around this, add spaces to the right
  854.                of short entries.  For example, changing "BUFFERS = 5" to
  855.                "BUFFERS = 5     *" allows MCONFIG to change the line to
  856.                a "BREAK = OFF" statement, removing the "Invalid Command?"
  857.                error message from DOS.
  858.  
  859.           USING MCONFIG with DOS 5.00
  860.  
  861.                The only command that can NOT be selectably configured is
  862.           the "DOS =" statement.  This is because DOS 5.0 checks the
  863.           CONFIG.SYS file for "DOS =" entries before executing any device
  864.           drivers and uses the last "DOS =" statement found to set itself
  865.           up to load high.  This means that the following will NOT work:
  866.  
  867.                MCONFIG "L\oad \DOS\ \L\ow"
  868.                   DOS=LOW
  869.                   ...rest of configuration...
  870.  
  871.                MCONFIG "L\oad \DOS\ \H\igh"
  872.                   DOS=HIGH,UMB
  873.                   ...rest of configuration...
  874.  
  875.                MCONFIG End
  876.  
  877.           In the above example, the DOS=HIGH,UMB will always be used as
  878.           this is the last setting DOS sees.  DOS will then load itself
  879.           high before MCONFIG is executed.
  880. MCONFIG Version 1.00                                    Page 16
  881.  
  882.  
  883.           APPENDIX A: Advanced MCONFIG Features
  884.  
  885.  
  886.           ENVIRON.SYS DEVICE DRIVER
  887.  
  888.  
  889.                The ENVIRON.SYS device driver, when used with the SET.SYS
  890.           device driver, allows environmental variables to be set from
  891.           within the CONFIG.SYS file.  Environmental variables set in
  892.           this manner are retrieved by the MCON-SET program (normally run
  893.           in the AUTOEXEC.BAT file).
  894.                The ENVIRON.SYS device driver remains memory resident and
  895.           stores up to 128 bytes of environmental variables.  The syntax
  896.           for ENVIRON is as follows:
  897.  
  898.                DEVICE = ENVIRON.SYS
  899.  
  900.           There are no options.  The ENVIRON.SYS device driver uses 280
  901.           bytes of RAM.
  902.  
  903.  
  904.           SET.SYS DEVICE DRIVER
  905.  
  906.  
  907.                The SET.SYS device driver stores an environmental variable
  908.           and value for later retrieval by the MCON-SET program.  The
  909.           syntax for SET is:
  910.  
  911.                DEVICE = SET.SYS variable = value
  912.  
  913.           where "variable" is the environmental variable to store and
  914.           "value" is the value to store with it.
  915.  
  916.           NOTE:  ENVIRON.SYS must be loaded before SET.SYS is used.
  917.  
  918.  
  919.           MCON-SET.EXE PROGRAM
  920.  
  921.  
  922.                MCON-SET is a program that reads the environmental
  923.           variables stored by SET and ENVIRON and places them into DOS
  924.           environmental space.  There are no options for MCON-SET.  It is
  925.           usually placed at or near the beginning of the AUTOEXEC.BAT
  926.           file.
  927.  
  928.  
  929.           MCON-ERR.COM PROGRAM
  930.  
  931.                MCON-ERR is a program that sets the DOS ERRORLEVEL to the
  932.           same number as the Menu Item selected at boot-up.  For example,
  933.           the first menu item would set the ERRORLEVEL to 1, the second
  934.           to 2, and so forth.
  935. MCONFIG Version 1.00                                    Page 17
  936.  
  937.  
  938.           CREM.EXE PROGRAM
  939.  
  940.                CREM (Configuration REMarker) prevents memory managers
  941.           such as QEMM-386, 386^MAX, and BlueMAX from optimizing
  942.           MCONFIG's Menu Item "Selection Blocks".  Memory managers may
  943.           not recognize MCONFIG and change its settings so it no longer
  944.           runs correctly.  CREM modifies the CONFIG.SYS file so that
  945.           only one selection block is visible to the optimization
  946.           program.
  947.  
  948.                Valid options for CREM are listed below:
  949.  
  950.           CREM block_number REMOVE
  951.  
  952.           Options are:
  953.  
  954.                block_number - REMark out MCONFIG-specific lines and
  955.                               all selection blocks EXCEPT "block_number"
  956.                      REMOVE - Restore MCONFIG-specific lines and all
  957.                               selection blocks
  958.  
  959.                "Block_number" tells CREM to process the CONFIG.SYS file
  960.           commenting out all MCONFIG-specific lines and all Menu Item
  961.           "selection blocks" EXCEPT the specified "block_number".  This
  962.           option is not compatible with REMOVE.
  963.  
  964.                 REMOVE tells CREM to remove all REMarks from the
  965.           CONFIG.SYS file placed there by a previous invocation of CREM
  966.           (other comments will remain untouched).  This option is not
  967.           compatible with "block_number".
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990. MCONFIG Version 1.00                                    Page 18
  991.  
  992.  
  993.                An example of a CONFIG.SYS file before processing by
  994.           CREM:
  995.  
  996.           __ SAMPLE CONFIG.SYS FILE _____________________________________
  997.           DOS     = High
  998.           device  = c:\qemm\qemm386.sys noems
  999.           shell   = c:\command.com /e:512 /p
  1000.  
  1001.           device  = c:\utils\MCONFIG.SYS Center NumOff
  1002.           device  = MCONFIG SelectionBarBackground=RED
  1003.  
  1004.           device  = MCONFIG "C\onfiguration with cache"
  1005.             device = c:\mouse\mouse.sys /y /s30
  1006.             device = c:\cache\cache.sys 4096
  1007.             device = c:\DOS\ansi.sys
  1008.             device = c:\DOS\setver.exe
  1009.  
  1010.           device  = MCONFIG "C\onfiguration with \RAM\disk"
  1011.             device = c:\mouse\mouse.sys /y /s30
  1012.             device = c:\DOS\ramdrive.sys 4096
  1013.             device = c:\DOS\ansi.sys
  1014.             device = c:\DOS\setver.exe
  1015.  
  1016.           device = MCONFIG "M\inimal configuration"
  1017.             device = c:\DOS\ansi.sys
  1018.             device = c:\DOS\setver.exe
  1019.  
  1020.           device = MCONFIG End
  1021.  
  1022.           buffers   = 5
  1023.           files     = 60
  1024.           break     = on
  1025.           STACKS    = 0,0
  1026.           lastdrive = E
  1027.           ________________________________________________ END OF FILE __
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045. MCONFIG Version 1.00                                    Page 19
  1046.  
  1047.  
  1048.                If CREM was invoked with "CREM 2", the CONFIG.SYS file
  1049.           would be modified as follows:
  1050.  
  1051.  
  1052.           __ SAMPLE CONFIG.SYS FILE AFTER CREM 2 PROCESSING _____________
  1053.           DOS     = High
  1054.           device  = c:\qemm\qemm386.sys noems
  1055.           shell   = c:\command.com /e:512 /p
  1056.  
  1057.           REM {!!}device  = c:\utils\MCONFIG.sys Center NumOff
  1058.           REM {!!}device  = MCONFIG SelectionBarBackground=RED
  1059.  
  1060.           REM {!!}device  = MCONFIG "C\onfiguration with cache"
  1061.           REM {!!}  device = d:\mouse\mouse.sys /y /s30
  1062.           REM {!!}  device = c:\cache\cache.sys 4096
  1063.           REM {!!}  device = c:\DOS\ansi.sys
  1064.           REM {!!}  device = c:\DOS\setver.exe
  1065.           REM {!!}
  1066.           REM {!!}device  = MCONFIG "C\onfiguration with RAMdisk"
  1067.             device = c:\mouse\mouse.sys /y /s30
  1068.             device = c:\DOS\ramdrive.sys 4096
  1069.             device = c:\DOS\ansi.sys
  1070.             device = c:\DOS\setver.exe
  1071.  
  1072.           REM {!!}device = MCONFIG "M\inimal configuration"
  1073.           REM {!!}  device = c:\DOS\ansi.sys
  1074.           REM {!!}  device = c:\DOS\setver.exe
  1075.           REM {!!}
  1076.           REM {!!}device = MCONFIG End
  1077.  
  1078.           buffers   = 5
  1079.           files     = 60
  1080.           break     = on
  1081.           STACKS    = 0,0
  1082.           lastdrive = E
  1083.           ________________________________________________ END OF FILE __
  1084.  
  1085.  
  1086.                Note that the second Menu Item "selection block" is
  1087.           available to DOS (and the optimization program).  Now that
  1088.           CREM has modified the CONFIG.SYS, the QEMM OPTIMIZE or
  1089.           386^MAX MAXIMIZE programs can be safely run.
  1090.  
  1091.                After optimization, execute the following:
  1092.  
  1093.                CREM REMOVE
  1094.  
  1095.           to remove the comments placed in the CONFIG.SYS file by CREM.
  1096.           This restores the MCONFIG Menu Item "selection blocks" (with
  1097.           an optimized second item).
  1098.  
  1099.  
  1100. MCONFIG Version 1.00                                    Page 20
  1101.  
  1102.  
  1103.                There is no specific way to process the AUTOEXEC.BAT with
  1104.           CREM since there are many different ways AUTOEXEC.BAT files can
  1105.           be processed with MCONFIG.  Because of this, the AUTOEXEC.BAT
  1106.           files will have to be processed manually.
  1107.                If only one AUTOEXEC.BAT file is used, then processing is
  1108.           simplified.  For example, if the AUTOEXEC.BAT file is as
  1109.           follows:
  1110.  
  1111.           __ SAMPLE AUTOEXEC.BAT FILE __________________________________
  1112.           C:\MCONFIG\MCON_SET
  1113.           C:\MCAFEE\VSHIELD /CHKHI /CV /LH /M
  1114.           GOTO CONFIG_%MCONFIG%
  1115.           :CONFIG_1
  1116.              (first configuration)
  1117.           :CONFIG_2
  1118.              (second configuration)
  1119.           :CONFIG_3
  1120.              (third configuration)
  1121.           ________________________________________________ END OF FILE __
  1122.  
  1123.  
  1124.              Given the previous CONFIG.SYS example run with "CREM 2", edit
  1125.           the AUTOEXEC.BAT file as follows:
  1126.  
  1127.  
  1128.           __ SAMPLE AUTOEXEC.BAT FILE AFTER EDITING ___________________
  1129.           C:\MCONFIG\MCON_SET
  1130.           SET MCONFIG=2                        <--- add this line
  1131.           GOTO CONFIG_%MCONFIG%
  1132.           :CONFIG_1
  1133.              (first configuration)
  1134.           :CONFIG_2
  1135.              (second configuration)
  1136.           :CONFIG_3
  1137.              (third configuration)
  1138.           ________________________________________________ END OF FILE __
  1139.  
  1140.                After the optimization program has been run, edit the
  1141.           AUTOEXEC.BAT to remove the "SET MCONFIG=2" line.
  1142.  
  1143.           NOTE:  CREM will ALWAYS operate on C:\CONFIG.SYS.
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155. MCONFIG Version 1.00                                    Page 21
  1156.  
  1157.  
  1158.                Following are the steps necessary to optimize an MCONFIG
  1159.           configuration with three different Menu Item "selection
  1160.           blocks" using QEMM's OPTIMIZE in this example:
  1161.  
  1162.  
  1163.                  1.   run "CREM 1"
  1164.                  2.   Change AUTOEXEC.BAT for first configuration
  1165.                  3.   run "OPTIMIZE"
  1166.  
  1167.                  4.   run "CREM 2"
  1168.                  5.   Change AUTOEXEC.BAT for second configuration
  1169.                  6.   run "OPTIMIZE"
  1170.  
  1171.                  7.   run "CREM 3"
  1172.                  8.   Change AUTOEXEC.BAT for third configuration
  1173.                  9.   run "OPTIMIZE"
  1174.                  10.  run "CREM remove"
  1175.